﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sp.anamaria;
using sp.rolf;

namespace sp.platine
{
    public class Platine
    {
        private readonly Rolf rolf;

        public Platine(Rolf rolf, AnaMaria anamaria)
        {
            this.rolf = rolf;

            rolf.OnText += anamaria.ProcessText;
            anamaria.OnText += t => this.OnText(t);
        }

        public void ProcessText(string text)
        {
            this.rolf.ProcessText(text);
        }

        public event Action<string> OnText;
    }
}
